package com.stone.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author stone
 * @date 2022/4/22 9:24
 */
@Data
public class ConfigAddDTO implements Serializable {

    @NotEmpty(message = "字典编码不能为空")
    @ApiModelProperty(value = "字典编码")
    private String configCode;
    @NotEmpty(message = "字典名称不能为空")
    @ApiModelProperty(value = "字典名称")
    private String configName;
    @NotEmpty(message = "父字典编码不能为空")
    @ApiModelProperty(value = "父字典编码(顶级为0)")
    private String parentCode;
    @ApiModelProperty(value = "排序")
    private Integer sort;
}
